package org.example.feifan.datasource.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.feifan.datasource.entity.SysUserDto;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Donald
 * @create 2020-04-18 23:01
 */
@Mapper
@Repository
public interface SysUserMapper {

    @Select("select * from sys_user")
    List<SysUserDto> findAll();

    SysUserDto selctOne();

    @Select("select * from sys_user c where c.id = 1 ")
    SysUserDto queryOne();
}
